package dashboard.databll;

import com.bj58.ecdata.calc.dbservice.service.BusslineEnum;
import com.bj58.ecdata.calc.dbservice.service.ClickService;
import com.bj58.ecdata.calc.dbservice.service.MapTopTypeEnum;
import com.bj58.ecdata.calc.dbservice.service.MarketTypeEnum;
import com.bj58.ecdata.calc.dbservice.service.PlatformEnum;

import dashboard.service.SCFClient;

public class ClickServiceBLL {

	private static ClickService clickService = SCFClient.getRemoteService(ClickService.class);

	public static String ping() {
		return clickService.ping();
	}

	public static String getDailySum() {
		return clickService.getDailySum();
	}

	public static String getDailySum(PlatformEnum platform, BusslineEnum bussline) {
		return clickService.getDailySum(platform, bussline);
	}

	/**
	 * 柱状图数据
	 * 
	 * @param time
	 *            0 返回最近一小时数据
	 */
	public static String getData(String type, PlatformEnum platform, BusslineEnum bussline, long time) {
		return clickService.getData(type, platform, bussline, time);
	}

	/**
	 * 柱状图数据 今日小时数据
	 */

	public static String getDataTodayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return clickService.getDataTodayHourly(type, platform, bussline);
	}

	/**
	 * 柱状图数据 昨日小时数据
	 */
	public static String getDataYesterdayHourly(String type, PlatformEnum platform, BusslineEnum bussline) {
		return clickService.getDataYesterdayHourly(type, platform, bussline);
	}

	/**
	 * 地图数据
	 * 
	 * @param pointNum
	 *            点数量 (0~30)
	 */
	public static String getMapDataWithCity(MarketTypeEnum marketType, int pointNum) {
		return clickService.getMapDataWithCity(marketType, pointNum);
	}

	/**
	 * 地图详细数据
	 * 
	 * @param count
	 *            条数
	 * @return
	 */
	public static String getMapDataDetail(int count, long time) {
		return clickService.getMapDataDetail(count, time);
	}

	/**
	 * 地图toplist
	 */
	public static String getMapTopList(MapTopTypeEnum type, int count) {
		return clickService.getMapTopList(type, count);
	}

}
